<template>
  <div class="dashboard-editor-container">
    <!-- 一组面板 资源总量 图文总量 多模态总量 -->
    <panel-group />
    
    <el-row :gutter="12">
      <el-col :xs="36" :sm="36" :lg="14">
        <!-- 折线图 按天/月增加的数量（五条曲线：总量、四个类型） -->
        <div>
          <line-chart class="chart-wrapper"/>
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="10">
        <!-- 饼图 各类型占比 -->
        <div>
          <pie-chart class="chart-wrapper"/>
        </div>
      </el-col>
    </el-row>

    
  </div>
</template>

<script>
import PanelGroup from './dashboard/PanelGroup'
import LineChart from './dashboard/LineChart'
import PieChart from './dashboard/PieChart'

export default {
  name: 'Index',
  components: {
    PanelGroup,
    LineChart,
    PieChart
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 2px 0 0;
    margin-bottom: 32px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>